package cn.gok.oa.attendance.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AttendanceVo {
    @ExcelProperty("考勤id")
    private Integer id;
    @ExcelProperty("用户id")
    private Integer userId;
    @ExcelProperty("用户名称")
    private String userName;
    @ExcelProperty("部门名称")
    private String deptName;
    @ExcelProperty("考勤状态")
    private Integer attendanceStatus;
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ExcelProperty("考勤时间")
    private Date time;
}
